﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/public/admin.master" AutoEventWireup="true" Inherits="admin_vouchers_Package_AddEdit" Codebehind="Package_AddEdit.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="content" runat="Server">
    <fieldset class="fieldset">
        <legend>تعریف و ویرایش بسته های ویژه</legend>
        <br />
        <br />
        <table style="direction:rtl; width: 700px;">
            <tr>
                <td class="detailheader" valign="top">نام بسته</td>
                <td>
                    <asp:TextBox ID="txtPackageName" runat="server" />
                    <asp:RequiredFieldValidator ID="rfvPackageName" runat="server" ControlToValidate="txtPackageName" Text="*" />
                </td>
            </tr>

            <tr>
                <td class="detailheader">فعال</td>
                <td><asp:CheckBox ID="cbActive" runat="server" /></td>
            </tr>

            <tr>
                <td class="detailheader">قیمت بسته</td>
                <td>
                    <asp:TextBox ID="txtPrice" runat="server" /> ریال
                    <asp:RequiredFieldValidator ID="rfvPrice" runat="server" ControlToValidate="txtPrice" Text="*" />
                </td>
            </tr>

            <tr>
                <td class="detailheader">تاریخ شروع</td>
                <td>
                    <asp:TextBox ID="txtStartDate" runat="server" />
                    <img src="../../App_Themes/Default/images/calendar.jpg" alt="" onclick="displayDatePicker('<%= txtStartDate.ClientID %>');" />
                    <asp:RequiredFieldValidator ID="rfvStartDate" runat="server" ControlToValidate="txtStartDate" Text="*" />
                 </td>
            </tr>

            <tr>
                <td class="detailheader">تاریخ پایان</td>
                <td>
                    <asp:TextBox ID="txtExpireDate" runat="server" />
                    <img src="../../App_Themes/Default/images/calendar.jpg" alt="" onclick="displayDatePicker('<%= txtExpireDate.ClientID %>');" />
                    <asp:RequiredFieldValidator ID="rfvExpireDate" runat="server" ControlToValidate="txtExpireDate" Text="*" />
                </td>
            </tr>

            <tr>
                <td class="detailheader">توضیحات</td>
                <td>
                    <asp:TextBox ID="txtDescription" runat="server" TextMode="MultiLine" />
                    <asp:RequiredFieldValidator ID="rfvDescription" runat="server" ControlToValidate="txtDescription" Text="*" />
                </td>
            </tr>

            <tr>
                <td class="detailheader">تصویر</td>
                <td><asp:FileUpload ID="fuImage" runat="server" /></td>
            </tr>

            <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
            </tr>

            <tr>
                <td colspan="2">
                    <asp:Button ID="btnSave" Text="ذخیره تغییرات" runat="server" CausesValidation="true"
                onclick="btnSave_Click" />
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
